#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int count = 1;

int fib(int i)
{
	if (i == 3)
		count++;
	if (i <= 2)
		return 1;
	else
		return fib(i - 1) + fib(i - 2);
}
int main()
{
	int i = 0;
	scanf("%d", &i);
	int n = fib(i);
	printf("%d\n", n);
	printf("%d", count);
	return 0;
}